package com.mall.shop.entity.product;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * 商品属性(Attr)表实体类
 *
 * @author 龙茶清欢
 * @since 2023-01-16 15:11:28
 */
@Getter
@Setter
@TableName("pms_attr")
@Schema(name = "商品属性实体", description = "商品属性映射")
public class Attr implements Serializable {
    private static final long serialVersionUID = -31934569324058806L;

    @TableId(value = "attr_id" , type = IdType.AUTO)
    @Schema(description = "属性id")
    private Long attrId;

    @TableField(value = "attr_name")
    @Schema(description = "属性名")
    private String attrName;
    
    @TableField(value = "search_type")
    @Schema(description = "是否需要检索[0-不需要，1-需要]")
    private Integer searchType;
    
    @TableField(value = "value_type")
    @Schema(description = "值类型[0-为单个值，1-可以选择多个值]")
    private Integer valueType;
    
    @TableField(value = "icon")
    @Schema(description = "属性图标")
    private String icon;
    
    @TableField(value = "value_select")
    @Schema(description = "可选值列表[用逗号分隔]")
    private String valueSelect;
    
    @TableField(value = "attr_type")
    @Schema(description = "属性类型[0-销售属性，1-基本属性，2-既是销售属性又是基本属性]")
    private Integer attrType;
    
    @TableField(value = "enable")
    @Schema(description = "启用状态[0 - 禁用，1 - 启用]")
    private Long enable;
    
    @TableField(value = "catelog_id")
    @Schema(description = "所属分类")
    private Long catelogId;
    
    @TableField(value = "show_desc")
    @Schema(description = "快速展示【是否展示在介绍上；0-否 1-是】，在sku中仍然可以调整")
    private Integer showDesc;
    
}

